package com.gxa.ssm251.pojo.vo;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

//服务于视图层的(View)的实体对象
public class GetVo {
    private  Integer id;
    private String cpName;
    private String phone;
    @JSONField(format = "YYYY-MM-dd HH:mm:ss")
    private Date colletExpire;
    @JSONField(format = "YYYY-MM-dd HH:mm:ss")
    private Date useExpire;

    public GetVo() {
    }

    public GetVo(Integer id, String cpName, String phone, Date colletExpire, Date useExpire) {
        this.id = id;
        this.cpName = cpName;
        this.phone = phone;
        this.colletExpire = colletExpire;
        this.useExpire = useExpire;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCpName() {
        return cpName;
    }

    public void setCpName(String cpName) {
        this.cpName = cpName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getColletExpire() {
        return colletExpire;
    }

    public void setColletExpire(Date colletExpire) {
        this.colletExpire = colletExpire;
    }

    public Date getUseExpire() {
        return useExpire;
    }

    public void setUseExpire(Date useExpire) {
        this.useExpire = useExpire;
    }

    @Override
    public String toString() {
        return "GetVo{" +
                "id=" + id +
                ", cpName='" + cpName + '\'' +
                ", phone='" + phone + '\'' +
                ", colletExpire=" + colletExpire +
                ", useExpire=" + useExpire +
                '}';
    }
}
